package com.ch.consumer.controller;

import com.ch.consumer.service.HystrixTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cj-ch
 * @date 2018/4/21 下午2:46
 */
@RestController
public class HystrixTestController {
    @Autowired
    private HystrixTestService hystrixTestService;


    @RequestMapping("/hystrix-test")
    public String hystrixTest(){
        return hystrixTestService.hystrixTest();
    }

}
